package com.leeon.generics;

public class Holder2 {

	private Object o;

	
	public Holder2(Object o){
		this.o = o;
	}
	
	public Object getO() {
		return o;
	}

	public void setO(Object o) {
		this.o = o;
	}
	
	public static void main(String[] args){
		Holder2 holder2 = new Holder2(new Automobile());
		
		Automobile a = (Automobile) holder2.getO();
		
		System.out.println("class " + a.getClass().getSimpleName());
	}
}
